package com.heima.user.controller;

import com.heima.user.entity.ApUserFollow;
import com.heima.user.service.ApUserFollowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ApUserFollowController {

    @Autowired
    private ApUserFollowService apUserFollowService;
    /**
     * feign调用，查询关注信息
     */
    @GetMapping("/api/v1/follow/user_follow")
    public ApUserFollow  findByUserIdAndFollowId(@RequestParam("userId") Integer userId,@RequestParam("followId") Integer followId){
       return apUserFollowService.findByUserIdAndFollowId(userId,followId);
    }
}
